home *** CD-ROM | disk | FTP | other *** search
- Path: spock.asic.sc.ti.com!usenet
- From: "Billy N. Patton" <bpatton@asic.sc.ti.com>
- Newsgroups: comp.lang.c++
- Subject: MSVC2.0 graphics Newbie
- Date: Mon, 05 Feb 1996 09:10:39 -0600
- Organization: Texas Instruments, Inc.
- Message-ID: <31161DEF.14B3@asic.sc.ti.com>
- NNTP-Posting-Host: bily-linux.asic.sc.ti.com
- Mime-Version: 1.0
- Content-Type: text/plain; charset=us-ascii
- Content-Transfer-Encoding: 7bit
- X-Mailer: Mozilla 2.0b5 (WinNT; I)
-
- A few questions about some problems.
-
- 1. How do I change the background color?
- I've tried in CXXXView::CXXXView
- CClientDC dc(this);
- dc.SetBkColor(RGB( 100 , 100 , 100 ));
- OnPrepareDC(&dc);
- This crashes on the OnPrepare
- I've tried the same lines in OnInitialUpdate
- and OnDraw. Nothing seems to work;
-
- 2. How do I draw a rectangle that is not filled?
- I need to see whats behind the rectangle.
-
- 3. In rubberbanding the rect I leave previously drawn
- images on the screen. How do I get rid of these after
- OnMouseMove draws a new one? Do I grab a bitmat
- and redisplay it after each rectangle function?
-
-
- !!!WARNING!!! If you answer these questions I WILL be asking
- you more directly through email.
-
- I am not a student looking for help! I am a programmer
- looking to increase my knowledge of graphics.
-